print("hello, python")

def is_leaf(y):
    return y % 4 == 0 and y % 100 != 0 or y % 400 == 0

print(is_leaf(2023))
print(is_leaf(2024))


def my_bubble_sort(l):
    for i in range(len(l) - 1):
        for j in range(len(l) - i - 1):
            if l[j] > l[j + 1]:
                l[j], l[j + 1] = l[j + 1], l[j]


l = [1, 3, 6, 5, 2, 8, 7, 4]
print(l)
my_bubble_sort(l)
print(l)

# 看一下这个range
for i in range(8):
    print(i)


